.scene-management { padding: 24px; color: #333; }
.header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 1.8rem; font-weight: 600; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 6px; border: none; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s; }
.btn-primary { background-color: #0d6efd; color: white; }
.btn-primary:hover { background-color: #0b5ed7; }
.table-container { overflow-x: auto; background-color: #fff; border: 1px solid #dee2e6; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid #dee2e6; color: #495057; }
thead th { background-color: #f8f9fa; font-weight: 600; color: #343a40; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background-color: #f1f3f5; }
.description-cell { max-width: 400px; white-space: normal; line-height: 1.6; }
.empty-data { text-align: center; color: #6c757d; padding: 40px 0; }

/* 操作列样式优化 */
td:last-child {
  /* 确保操作列有足够宽度 */
  min-width: 280px;
  /* 使用flex布局，强制按钮并排 */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

/* 优化按钮样式，减少宽度 */
.btn-action, .btn-ai-scheduling {
  /* 减小内边距，节省空间 */
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  font-size: 0.85rem; /* 稍微减小字体 */
  cursor: pointer;
  /* 调整按钮间距 */
  margin-right: 6px;
  color: white;
  transition: all 0.2s ease;
  /* 防止按钮内容换行 */
  white-space: nowrap;
}

/* 最后一个按钮移除右边距 */
.btn-action:last-child, .btn-ai-scheduling:last-child {
  margin-right: 0;
}

/* 编辑按钮 */
.btn-edit {
  background-color: #ffc107;
  color: #212529;
}

/* 编辑按钮悬停效果 */
.btn-edit:hover {
  background-color: #e0a800; /* 深黄色 */
  transform: translateY(-1px);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

/* 删除按钮 */
.btn-delete {
  background-color: #dc3545;
}

/* 删除按钮悬停效果 */
.btn-delete:hover {
  background-color: #c82333; /* 深红色 */
  transform: translateY(-1px);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

/* AI智能排班按钮样式 */
.btn-ai-scheduling {
  background-color: #198754; /* 绿色主色调，代表智能、高效 */
  display: inline-flex;
  align-items: center;
  gap: 4px; /* 减小图标和文字间距 */
  position: relative;
  overflow: hidden;
}

/* 悬停效果 */
.btn-ai-scheduling:hover {
  background-color: #157347; /* 深绿色 */
  transform: translateY(-1px); /* 减小上浮效果 */
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
}

/* 点击效果 */
.btn-action:active, .btn-ai-scheduling:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* 加载状态样式 */
.btn-ai-scheduling.loading {
  cursor: progress;
}

.btn-ai-scheduling.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: loading-anim 1.5s infinite;
}

/* 加载动画 */
@keyframes loading-anim {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 按钮图标样式 */
.btn-ai-scheduling svg {
  width: 14px; /* 减小图标尺寸 */
  height: 14px;
  fill: white;
}

/* 响应式设计 - 在小屏幕上调整布局 */
@media (max-width: 768px) {
  /* 调整表格单元格内边距，节省空间 */
  th, td {
    padding: 10px;
  }

  /* 操作列在小屏幕上允许换行 */
  td:last-child {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* 小屏幕上按钮样式调整 */
  .btn-action, .btn-ai-scheduling {
    padding: 5px 8px;
    font-size: 0.8rem;
    margin-right: 0;
  }
}
